package com.efast.dmom.equipment.controller.checkingreport;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.dmom.equipment.bean.checkingreport.EquipCheckingReportParamBean;
import com.efast.dmom.equipment.bean.checkingreport.EquipCheckingReportReturnBean;
import com.efast.dmom.equipment.service.checkingReport.EquipCheckingReportService;

@Controller
@RequestMapping("/equipment")
public class EquipCheckingReportController{

	@Autowired
	private EquipCheckingReportService equipCheckingReportService;
	
	
	@RequestMapping(value = "/report/getWeeklyCheckingTask", method = RequestMethod.POST)
	public @ResponseBody List<EquipCheckingReportReturnBean> getWeeklyCheckingTask(@RequestBody EquipCheckingReportParamBean paramBean) {
		return equipCheckingReportService.getWeeklyCheckingTask(paramBean);
	}

	
	@RequestMapping(value = "/report/getMonthlyCheckingTask", method = RequestMethod.POST)
	public @ResponseBody List<EquipCheckingReportReturnBean> getMonthlyCheckingTask(@RequestBody EquipCheckingReportParamBean paramBean) {
		return equipCheckingReportService.getMonthlyCheckingTask(paramBean);
	}

	
	@RequestMapping(value = "/report/getYearlyCheckingTask", method = RequestMethod.POST)
	public @ResponseBody List<EquipCheckingReportReturnBean> getYearlyCheckingTask(@RequestBody EquipCheckingReportParamBean paramBean) {
		return equipCheckingReportService.getYearlyCheckingTask(paramBean);
	}

	
	@RequestMapping(value = "/report/getAllCheckingTask", method = RequestMethod.POST)
	public @ResponseBody List<EquipCheckingReportReturnBean> getAllCheckingTask(@RequestBody EquipCheckingReportParamBean paramBean) {
		return equipCheckingReportService.getAllCheckingTask(paramBean);
	}
	
}
